/**
 * @author 谭
 * 用户路由
 */
"use strict";
const express = require('express');

const router = express.Router();

const expressJoi = require('@escook/express-joi')

const user = require('../../handle/user/user');

const { regUserRegister, regUserLogin } = require('../../schema/user/user');

/*
    用户注册
 */
router.post('/register',expressJoi(regUserRegister),user.userRegister);

/*
    用户登陆
 */
router.post('/userLogin',expressJoi(regUserLogin),user.userLogin);

module.exports = router;
